package com.cn.api;



import com.cn.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Primary
@FeignClient(value = "distributor-server",path = "/back/shop")
public interface ShopFeignClient {
    @GetMapping("/allProduce")
    Result allProduce(
            @RequestParam("id") Integer id);

    @GetMapping("/shelvesGoods")
    Result shelvesGoods(
            @RequestParam("id") Integer id);

    @GetMapping("/offGoods")
    Result offGoods(
            @RequestParam("id") Integer id);

    @GetMapping("/deleteGoods")
    Result deleteGoods(
            @RequestParam("id") Integer id);

    @GetMapping("/addGoods")
    Result addGoods(
            @RequestParam("id") Integer id);

    @GetMapping("/modifyStore")
    Result modifyStore(
            @RequestParam("img") Integer img,
            @RequestParam("name") Integer name,
            @RequestParam("shopkeeper") Integer shopkeeper,
            @RequestParam("introduction") Integer introduction);

    @GetMapping("/share")
    Result share(
            @RequestParam("id") Integer id);
    @GetMapping("/findByOrder")
    Result findByOrder(
            @RequestParam("id") Integer id);
}
